package pta.ch01.ex01;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String line = sc.nextLine().trim();
            if(line.isEmpty()){
                continue;
            }
            String[] numbers = line.split("\\s+");
            if(numbers.length != 2){
                continue;
            }
            int num1 = Integer.parseInt(numbers[0]);
            int num2 = Integer.parseInt(numbers[1]);
            System.out.println(num1 + num2);
        }
    }
}
